<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
</head>
<body>
<div id="app">
    <h1>Hello App!</h1>
    <p>
        <!-- 使用 router-link 组件来导航. -->
        <!-- 通过传入 `to` 属性指定链接. -->
        <!-- <router-link> 默认会被渲染成一个 `<a>` 标签 -->
        <router-link to="/foo">Go to Foo</router-link>
        <router-link to="/bar">Go to Bar</router-link>
    </p>
    <!-- 路由出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->
    <router-view></router-view>
</div>
</body>
    <script>
        const Foo = { template: '<div>foo</div>' }
        const Bar = { template: '<div>bar</div>' }
        const routes = [
            { path: '/foo', redirect: 'http://localhost:63342/blog/blog-client-controller/web/WEB-INF/register.html?_ijt=5acenpkhpr6kdlel937rpnvtpr#/' },
            { path: '/bar', component: Bar },

        ]

        const router = new VueRouter({
            routes // (缩写) 相当于 routes: routes
        })

        const app = new Vue({
                router,
                el: '#app',
                data: {

                },
                computed: {

                },
                methods: {

                }
            }).$mount('#app')

    </script>


</html>